<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>当当—网上购物中心：图书、母婴、美妆、家居、数码、家电、服装、鞋包等，正品低价，货到付款</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list.css"/>
		<!--分页-->
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list/reset.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list/pagination.css"/>
		<script src="./Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>

		<script src="./Public/Home/js/list/jquery.pagination.js" type="text/javascript" charset="utf-8"></script>
		
		<script src="./Public/Home/js/index.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.list_right span .grey{
				background: #B09F9F;
  				color: #fff;
			}
			.list_right span a:hover{
				background: #B09F9F;
  				color: #fff;
			}
		</style>
	</head>
	<body>
			
		<!--灰色区块-->
		<div id="heard_top">
			<div class="heard_body">
				
				<div class="heard_body_right">
					<div class="ddnewhead_welcome">
						<span class="welcome">欢迎光临当当,</span>
												                
							请<a target="_blank" href="http://localhost/git.shop/shop/index.php?m=Home&c=Login&a=index" class="denglu">登录</a>
							<a target="_blank" href="http://localhost/git.shop/shop/index.php?m=Home&c=Member&a=reg">成为会员</a>
						
               					</div>
					<ul class="ddnewhead_operate_nav">
						<li>
															<a href="http://localhost/git.shop/shop/index.php?m=Home&c=Cart&a=index" class="cart">购物车</a>
							
               							
						</li>
						<li>
															<a href="http://localhost/git.shop/shop/index.php?m=Home&c=Login&a=index">我的订单</a>	
							
               


						</li>
							</ul>
						</li>
				</ul>
				</div>
			</div>
		</div>
		<!--灰色区块结束-->
		<!--logo搜索区块-->
		<div id="logo">
			<div class="logo-quk">
				<div class="logo_left">
					<a href="index.php"><img src="./Public/Home/images/0.gif"/></a>
				</div>
				<div class="logo_middle">
					<form action="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index" method="get">
						<input type="text" name="key" placeholder="温州特产善味阁鸭舌头 香辣酱鸭舌独立小包8~12g 零食" class="cl" style="visibility: visible";/>
						<div class="select"><span>全部分类</span></div>
						<input type="hidden" name="default_key" class="default_key" value="温州特产善味阁鸭舌头 香辣酱鸭舌独立小包8~12g 零食" />
						<script type="text/javascript">
							$(function(){
								$(".cl2").click(function(){
									var key =  $(".cl").val();
									var default_key = $(".default_key").val();
										if(key != ''){
											location.href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=search" + '&k=' + key;
										}else{
											location.href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=search" + '&k=' + default_key;
										}
								})
								
								$(document).keyup(function(event){
									if(event.keyCode ==13){
										$(".cl2").trigger("click");
									}
								});
								
							})
						</script>
						<input type="button" class="cl2" value=""/>
						
					</form>
				</div>
				<div class="logo_right">
					<div class="logo_gouwu">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=Cart&a=index" class="cart">购物车</a>
						
               					</div>
					<div class="logo_dt">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=Login&a=index">我的订单</a>
						
               						
					</div>
				</div>
				
			</div>
		</div>
		<!--导航栏-->
		<div id="dh">
			<div class="dh_class">
				<div class="classify">
					<a href="index.php" class="dh_fl">全部商品分类</a>
					<ul class="box">
												<li class="menu_one">
							<a href="" class="oi">服装</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1">服装</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1"><h4>女装</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1">裙子</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1">婚纱礼服</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1">成熟女装</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1">少淑装</a>
																											</li>
											</ul>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1"><h4>男装</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1">T恤</a>
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
												<li class="menu_one">
							<a href="" class="oi">电器城</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=2">电器城</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=2"><h4>数码影音</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=2">苹果/配件</a>
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
												<li class="menu_one">
							<a href="" class="oi">地方特产</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">地方特产</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16"><h4>进口食品</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">饼干糕点</a>
																											</li>
											</ul>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16"><h4>休闲食品</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">枣</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">果脯</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">坚果/炒货</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">蜜饯</a>
																											</li>
											</ul>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16"><h4>地方特产</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">西北</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">华东</a>
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">茶/酒/糕点</a>
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
												<li class="menu_one">
							<a href="" class="oi">图书</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=19">图书</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=19"><h4>电子书热销类</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=19">爱情/情感</a>
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
												<li class="menu_one">
							<a href="" class="oi">创意文具</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=20">创意文具</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=20"><h4>文化用品</h4></a>
													<li >
																													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=20">练字帖/练字板</a>
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
												<li class="menu_one">
							<a href="" class="oi">户外运动</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=22">户外运动</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=22"><h4>运动鞋</h4></a>
													<li >
																											</li>
											</ul>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=22"><h4>健身器械</h4></a>
													<li >
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
												<li class="menu_one">
							<a href="" class="oi">家居</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=26">家居</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=26"><h4>床品件套</h4></a>
													<li >
																											</li>
											</ul>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=26"><h4>蚊帐/凉席</h4></a>
													<li >
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
												<li class="menu_one">
							<a href="" class="oi">当当自营</a>
							<!--菜单栏里面的子菜单-->
								<div class="submenu">
									<div class="boxs">
										<div class="submenu_one">
											<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=32">当当自营</a>
										</div>
																					<ul class="submenu_two">
													<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=32"><h4>休闲零食</h4></a>
													<li >
																											</li>
											</ul>
																			</div>
								</div>
							<!--菜单栏里面的子菜单结束-->
						</li>
						
					</ul>
				</div>
				
				<!--顶级分类-->
				<ul class="ban">
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=1">服装</a>
					</li>
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=2">电器城</a>
					</li>
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=16">地方特产</a>
					</li>
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=19">图书</a>
					</li>
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=20">创意文具</a>
					</li>
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=22">户外运动</a>
					</li>
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=26">家居</a>
					</li>
										<li class="children">
						<a href="http://localhost/git.shop/shop/index.php?m=Home&c=ListPage&a=index&cid=32">当当自营</a>
					</li>
									</ul>
			</div>
		</div>
		<!--导航栏结束-->
		    
		<!--列表页-->
		<div id="list">
			<dl>
				<dt>你是不是想找:</dt>
				<?php if(isset($shopOrder)){?>
                
					<?php foreach ($shopOrder as $v){?>
						<dd><a href="<?php echo U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))?>"><?php echo $v['shopname']?></a></dd>
					<?php }?>
				
               <?php }?>
			</dl>
		</div>	
		<div id="shoping">
			<ul class="shop_ul">
				<li class="shop">
					<a href="JavaScrpt:;">全部商品</a>
				</li>
			</ul>
		</div>
		<div id="crumbs">
			<div class="cate">
				<a href="<?php echo U('ListPage/index',['cid'=>$cids])?>">全部</a>
				<span class="sp">></span>
				<span class="lshi"></span>
				<?php if(isset($number)){?>
                <span class="">共<?php echo $number?>件商品</span>
				<?php }else{?>
					<span class="">共0件商品</span>
				
               <?php }?>
			</div>
		</div>
		<div id="filtrate_list">
			<ul>
				
				<?php foreach ($finalAttr as $k=>$value){?>
				<?php
					//1.
					$temp = $param;
//					点击不限把值重新设置为0	0_175_173_174_171
					$temp[$k] = 0;
				?>
				<li>
					<div class="list_left">
					<?php echo $value['name']?>
					</div>
						<div class="list_right">
							<span>
								<a href="JavaScript:;" <?php if($param[$k]==0){?>
                class="grey"
               <?php }?>>不限</a>
							</span>
							<?php foreach ($value['value'] as $v){?>
								<?php
													//商品属性表主键2
									$temp[$k] = $v['gtid'];
								?>
							<span>
								<a href="JavaScript:;" <?php if($v['gtid']==$param[$k]){?>
                class="grey"
               <?php }?>><?php echo $v['gtvalue']?></a>
								</span>
							<?php }?>
						</div>

					<div class="fix_list">
						<!--<a href="JavaScrpt:;">更多<i></i></a>-->
					</div>
				</li>
				<?php }?>
			</ul>
			<div class="btn_line">
				<!--<a href="JavaScrpt:;">更多选项<i></i></a>-->
			</div>
			<div class="soring_top">
				<ul>
					<li><a href="JavaScrpt:;">默认排序</a></li>
					<!--<li class="tools_to_float"><a href="JavaScrpt:;">销售<i></i></a></li>
					<li class="tools_to_float"><a href="JavaScrpt:;">价格<i></i></a></li>
					<li class="tools_to_float"><a href="JavaScrpt:;">上架时间<i style="right: 0px;"></i></a></li>-->
					<!--<li class="prices"><a href="JavaScrpt:;">价格<i class="pre"></i></a></li>-->
					<!--<li class="soring_middle">
						<div class="inner">
							<input type="text" name="low_price" id="" class="text_left" value="" />
							<span>-</span>
							<input type="text" name="hign_price" id="" class="text_right" value="" />
						</div>
					</li>-->
					<!--<li class="select_box">
						<div class="psz">配送至：</div>
						<span class="psz_add">
							北京
						</span>
					</li>-->
				</ul>	
				<div class="data">
					
				</div>
			</div>
		</div>
		
		<!--列表页-->
		
			<!--商品区块-->
		<div id="box">
			<div id="shoplist">
				<ul class="shoplist_ul">
					<?php if(isset($finalData)){?>
                
						<?php foreach ($finalData as $v){?>
							<li>
								<a target="_blank" href="<?php echo U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))?>"><img src="<?php echo $v['pic']?>"/></a>
								<span>¥<?php echo $v['shopprice']?></span>
								<?php if($v['marketprice']!=0){?>
                <span class="marketprice">¥<?php echo $v['marketprice']?></span>
               <?php }?>
								<p><?php echo $v['shopname']?></p>
								<p class="level">
									<span class="xing"></span>
								</p>
								<a class="pinglun" target="_blank" href="JavaScript:;"><?php echo $v['click']?>条点击数</a>
								<p class="dianpu"><i></i><a target="_blank" href="<?php echo U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))?>" class="stop"><?php echo $v['bname']?>旗舰店</a></p>
							</li>
						<?php }?>
					<?php }else{?>
					<div style="width: 960px;height: 130px;">
						<div style="width: 460px;height: 130px;margin: auto;">
							<i style="width: 46px;height: 46px;margin-top:40px;display:block;float:left;background: url(./Public/Home/images/listImages/6.png) no-repeat"></i>
							<h2 style="font-size: 18px;line-height: 30px;color: #333;font-weight: 400;padding-top: 40px;padding-left: 60px;font-family: 'Microsoft Yahei';">筛选条件太多了，没有找到相关商品</h2>
							<a href="JavaScript:history.back();" style="font-size: 16px;color: #1a66b3;font-family: 'Microsoft Yahei';padding-left: 15px;">返回上一步</a>
						</div>
						
					</div>
					
					
					
               <?php }?>
				</ul>
				
				<!--跳转分页-->
				    <div class="pages">
				        <div id="Pagination">
				        	
				        </div>
				        <div class="searchPage">
				          <span class="page-sum">共<strong class="allPage">1</strong>页</span>
				          <span class="page-go">跳转<input type="text">页</span>
				          <a href="javascript:;" class="page-btn">GO</a>
				        </div>
				    </div>
			    <script type="text/javascript">
					$(document).ready(function() {
						$("#Pagination").pagination("1");
					});
				</script>
			    
			</div>
			
		
		
			<!--商品区块-->
			
			<!--推广商品-->
			<div id="product">
				<h3>推广商品</h3>
				<ul class="product_ul">
					<?php foreach ($shopOrder as $v){?>
					<li>
						<a target="_blank" href="<?php echo U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))?>">
							<img src="<?php echo $v['pic']?>"/>
							<p><?php echo $v['shopname']?></p>
						</a>
						<p class="red">首页领券更划算</p>
						<p class="price_p">¥<?php echo $v['shopprice']?></p>
					</li>
					<?php }?>
				</ul>
				<p class="tui"><a href="">我要推广>></a></p>
			</div>
			<!--固定推广商品-->
		</div>
		<!--推广商品结束-->
	
		<!--页尾-->
		<div id="footer">
			<div class="footer_box">
				<a href="JavaScript:;" class="footer_pic">
					<span class="footer_pic_one"></span>
				</a>
				<a href="JavaScript:;" class="footer_pic">
					<span class="footer_pic_two"></span>
				</a>
				<a href="JavaScript:;" class="footer_pic">
					<span class="footer_pic_three"></span>
				</a>
				<a href="JavaScript:;" class="footer_pic">
					<span class="footer_pic_four"></span>
				</a>
			</div>
		</div>
		<!--购物指南-->
				<!--页尾 开始 -->

		<style type="text/css">.public_footer_box {
	width: 100%;
	margin: 0 auto;
	font: 12px "\5b8b\4f53", Arial, Helvetica, sans-serif;
	clear: both;
}

.public_footer {
	margin: 0 auto;
	width: 950px;
	padding: 32px 5px 0;
	font: 12px;
	color: #666;
	overflow: hidden;
}

.public_footer a {
	color: #666!important;
	text-decoration: none;
	font-size: 12px;
}

.public_footer a:hover {
	color: #f60!important;
	text-decoration: underline;
}

.public_footer .sep {
	display: inline-block;
	padding: 0 18px;
}

.public_footer .footer_copyright {
	padding-left: 168px;
	margin: 0 auto;
	width: 792px;
}

.public_footer .footer_copyright span {
	float: left;
	display: inline
}

.public_footer .footer_copyright span {
	padding-top: 10px;
}

.public_footer .footer_copyright a {
	padding-right: 4px;
}

.public_footer .footer_icon {
	margin: 10px 0 0 335px;
	width: 300px;
	height: 57px;
}

.public_footer .validator,
.public_footer .knet {
	float: left;
	display: inline;
	padding: 0 5px;
	width: 135px;
	height: 47px;
	margin-top: 30px;
}</style>

		<div class="public_footer_box">
			<div class="public_footer">
				<div class="footer_copyright">
					<span>Copyright (C) 当当网 2014-2016, All Rights Reserved</span><span class="sep">|</span><span>京ICP证1686692号</span><span class="sep">|</span><span>站长邮箱：1686692766@qq.com</span>
				</div>
				<div class="footer_icon">
					<div class="validator">
						<span class="footer_img">
						<img src="./Public/Home/images/1.gif">
						</span>
					</div>
					<div class="knet">
						<span class="footer_img">
						<img src="./Public/Home/images/2.png">
						</span>
					</div>
				</div>
			</div>
		</div>
		
	</body>
</html>
